﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using JYH.Data;
namespace JYH.Model
{

    /// <summary>
    ///  WmsStocktakeMaterial
    /// </summary> 
    [TableName("WmsStocktakeMaterial")]
    [PrimaryKey("TakeMaterialID", autoIncrement = false)]
    [ExplicitColumns]
    [Serializable]
    public class WmsStocktakeMaterial
    {
        

        /// <summary>
        /// 记录ID
        /// </summary>
        [Column]
        public string TakeMaterialID { get; set; }
        /// <summary>
        /// 盘点单ID
        /// </summary>
        [Column]
        public string StocktakeID { get; set; }

        /// <summary>
        /// 盘点卡号
        /// </summary>
        [Column]
        public string ErpItemNO { get; set; }

        /// <summary>
        /// 物料料号
        /// </summary>
        [Column]
        public string MaterialNO { get; set; }

        /// <summary>
        ///批号
        /// </summary>
        [Column]
        public string BatchNO { get; set; }

        /// <summary>
        /// 仓库编号
        /// </summary>
        [Column]
        public string WarehouseNO { get; set; }

        /// <summary>
        /// 储位编号
        /// </summary>
        [Column]
        public string StorageNO { get; set; }

        /// <summary>
        /// 计量单号
        /// </summary>
        [Column]
        public string UnitNO { get; set; }

        /// <summary>
        /// 库存数量
        /// </summary>
        [Column]
        public decimal InvQty { get; set; }

        /// <summary>
        /// 盘点单状态 0 编辑 1 审核(以后的状态就无法从ERP同步数据) 2 初盘 3 复盘 4 终盘 5 结束 6 回抛  
        /// </summary>
        [Column]
        public string RState { get; set; }

        /// <summary>
        ///初盘数量
        /// </summary>
        [Column]
        public decimal FirstQty { get; set; }

        /// <summary>
        /// 初盘人员
        /// </summary>
        [Column]
        public string FirstUser { get; set; }

        /// <summary>
        /// 初盘时间
        /// </summary>
        [Column]
        public string FirstTime { get; set; }

        /// <summary>
        /// 复盘数量
        /// </summary>
        [Column]
        public decimal SecondQty { get; set; }

        /// <summary>
        /// 复盘人员
        /// </summary>
        [Column]
        public string SecondUser { get; set; }

        /// <summary>
        ///复盘时间
        /// </summary>
        [Column]
        public string SecondTime { get; set; }

        /// <summary>
        ///终盘数量
        /// </summary>
        [Column]
        public decimal ThreeQty { get; set; }

        /// <summary>
        /// 终盘人员
        /// </summary>
        [Column]
        public string ThreeUser { get; set; }

        /// <summary>
        ///终盘时间
        /// </summary>
        [Column]
        public string ThreeTime { get; set; }

        /// <summary>
        /// 最终数量
        /// </summary>
        [Column]
        public decimal LastQty { get; set; }

        /// <summary>
        /// 差异数量
        /// </summary>
        [Column]
        public decimal DiffQty { get; set; }

        /// <summary>
        ///核算人员
        /// </summary>
        [Column]
        public string CheckUser { get; set; }

        /// <summary>
        /// 核算时间
        /// </summary>
        [Column]
        public string CheckTime { get; set; }

        [ResultColumn]
        public string TradeType { get; set; }


        [ResultColumn]
        public string TakeDate { get; set; }



 






    }

}
